package com.chen.shopping_common.utils;

import java.util.Random;

public class RandomUtil {

    public static String buildCheckNode(int digit){
        String str = "0123456789";
        Random random = new Random();
        StringBuilder stringBuilder = new StringBuilder();
        for (int i = 0; i < digit; i++) {
            char c = str.charAt(random.nextInt(str.length()));
            stringBuilder.append(c);
        }
        return stringBuilder.toString();
    }
}
